/**
 * Created by 123 on 2017/12/7.
 * 施工单位切换
 */

import React, {Component} from 'react';
import {
  Platform,
  StyleSheet,
  Text,
  View,
  Button,
} from 'react-native';
import {Actions} from 'react-native-router-flux'

export default class Tabs extends React.Component {
  render() {

    const { name } = this.props
    return (
      <View style={styles.container}>
        <Text style={styles.nameStyle}>{name}</Text>
        <View>
          {this.props.children}
        </View>

      </View>
    );
  }
}

const styles = StyleSheet.create({
  container: {
    backgroundColor: '#F5FCFF',
    display:'flex',
    flexDirection:'row'
  },
  nameStyle: {
    backgroundColor: '#F5FCFF',
    width:100
  },
  contentStyle: {
    backgroundColor: '#F5FCFF',
    flex:1,

  },
});